package com.base.pig.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 巡检计划实体
 * </p>
 *
 * @author wzx
 * @since 2022-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WPlan对象", description="巡检计划表")
public class WPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private BigDecimal id;

    @ApiModelProperty(value = "计划名称")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "巡检类型")
    @TableField("TYPE")
    private String type;

    @ApiModelProperty(value = "巡检人员")
    @TableField("PERSON")
    private String person;

    @ApiModelProperty(value = "巡检周期")
    @TableField("PERIOD")
    private String period;

    @ApiModelProperty(value = "开始日期")
    @TableField("STARTTIME")
    private String starttime;

    @ApiModelProperty(value = "结束日期")
    @TableField("ENDTIME")
    private String endtime;

    @ApiModelProperty(value = "巡查次数")
    @TableField("NUM")
    private String num;

    @ApiModelProperty(value = "巡查路线")
    @TableField("PATH")
    private String path;

    @ApiModelProperty(value = "巡查站点")
    @TableField("SITE")
    private String site;

    @ApiModelProperty(value = "添加时间")
    @TableField("TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    @ApiModelProperty(value = "巡检人员id")
    @TableField("PERSONID")
    private String personid;


}
